﻿using System;
using System.Collections.Generic;
using System.Text;
namespace TRPOP.Controls
{
    /// <summary>
    /// DropDownList
    /// </summary>
    public class DropDownList : System.Web.UI.WebControls.DropDownList
    {
        /// <summary>
        /// 
        /// </summary>
        public DropDownList()
        {

            using (this)
            {
                #region onfocus
                if (Attributes["onfocus"] == null)
                {
                    Attributes.Add("onfocus", "this.className=\"control_select_focus\"");
                }
                else
                {
                    string value = Attributes["onfocus"];
                    Attributes.Add("onfocus", "this.className=\"control_select_focus\" ;" + value + "");
                }
                #endregion

                #region onblur
                if (Attributes["onblur"] == null)
                {
                    Attributes.Add("onblur", "this.className=\"control_select_blur\"");
                }
                else
                {
                    string value = Attributes["onfocus"];
                    Attributes.Add("onblur", "this.className=\"control_select_focus\" ;" + value + "");
                }
                #endregion
            }


        }
    }
}
